<!--帖子主体-->
<div class="card">
    <div class="listview lv-lg">
        <div class="lv-header-alt" >
            <div class="title">
                {$userFlags}<span class="topic-title" >{$title}</span>
                <ul class="lv-actions actions">

                </ul>
            </div>
        </div>

        <div class="lv-body">
            <div>

                <div  class="" data-index="0" data-pid="{$bid}" data-uid="{$uid}"
                    data-timestamp="1548904155608" data-username="{$nickname}" data-userslug="{$nickname}" itemscope=""
                    itemtype="http://schema.org{$WEBPATH}ment">
                    <a  data-index="0"></a>
                    <meta itemprop="datePublished" content="">
                    <meta itemprop="dateModified" content="">

                    <div class="post-block" style="display: grid;">
                        <div class="poster-avatar hidden-xs">
                            <a href="{$WEBPATH}/user/{$uid}">
                                {$usericon}
                                <span  class="status {$online}" title="{$onlinetext}"></span>
                            </a>
                        </div>

                        <div class="post-content">
                            <div class="post-body">
                                <ul class="post-actions pull-right">
                                    <li class="votes">
                                        <a  href="javascript:;" onclick="zanb({$bid});" class="">
                                            <i class="fa fa-thumbs-o-up"></i>
                                        </a>
                                        <span id="zanb{$bid}" data-votes="0">{$goods}</span>
                                        <a  href="javascript:;" onclick ="caib({$bid});" class="">
                                            <i class="fa fa-thumbs-o-down"></i>
                                        </a>
                                        <span id="caib{$bid}" data-votes="0">{$bads}</span>
                                    </li>
                                    <li class="dropdown moderator-tools{::isnself} hidden{/isnself}">
                                        <a data-toggle="dropdown" class="dropdown-toggle" aria-expanded="true"><i
                                                class="fa fa-fw fa-ellipsis-v"></i></a>
                                        <ul class="dropdown-menu dropdown-menu-right pull-right" role="menu">
                                            <li><a href="{$WEBPATH}/bbs/edit/{$bid}"><svg width="18" height="18" style="vertical-align: middle;" class="fa fa-edit fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="black" d="M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"></path></svg>编辑</a></li>
                                            <li class="divider"></li>
                                            <li><a href="javascript:;" onclick="delbbs({$bid});"><svg width="18" height="18" style="vertical-align: middle;" class="glyphicon" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="black" d="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"></path></svg>删除</a></li>
                                            {::ifadmin}
                                            <li><a href="javascript:;" onclick="topbbs({$bid});"><span class="glyphicon glyphicon-arrow-up"></span>置顶</a></li>
                                            {/ifadmin}
                                        </ul>
                                    </li>
                                </ul>

                                <div class="post-header">
                                    <a class="pull-left visible-xs user-profile-link" href="{$WEBPATH}/user/{$uid}">
                                        {$usericon}
                                    </a>

                                    <strong>
                                        <a href="{$WEBPATH}/user/{$uid}" itemprop="author" data-username="{$nickname}"
                                            data-uid="17">{$nickname}</a>
                                    </strong>
                                    {$authflags}
                                    <span class="post-time">
                                        <a class="permalink" href="/post/14818"><span class="timeago" title="{$addTime}"
                                                datetime="{$addTime}">{$addTime}</span></a>
                                        <span class="post-tools">
                                            <a  href="{$WEBPATH}/bbs/reply/{$bid}" class="hidden"><i
                                                    class="fa fa-reply"></i>回复</a>
                                        </span>
                                    </span>
                                </div>
                                
                                {$content}
                                
                                <div>{::IsEdit}<small  class="pull-right post-edit"><strong><a
                                            href="{$WEBPATH}/user/{$edituid}"><font style="color:#aa4411;">{$editusername}</font>&emsp;最后编辑于</a></strong> <span class="timeago" title="Invalid Date"
                                        datetime="{$lastupdatetime}">{$lastupdatetime}</span></small>{/IsEdit}</div>

                            </div>
                        </div>
                    </div>
                </div>

                <!--楼主部分-->
                <div class="post-bar">
                    <div class="tags hidden-xs">

                    </div>

                    <ul class="postbar-actions pull-right">
                        <li class="loading-indicator pull-left hidden">
                            <span class="hidden-xs">正在加载更多帖子</span> <i class="fa fa-refresh fa-spin"></i>
                        </li>

                        <li class="post-count">
                            <span  class="human-readable-number"
                                title="{$replies}">{$replies}</span><br>
                            <small>回复</small>
                        </li>
                        <li class="view-count">
                            <span title="{$views}" class="human-readable-number">{$views}</span><br>
                            <small>浏览</small>
                        </li>
                        <li class="reply-button" bid="{$bid}">
                            {::iflogin}<a 
                                class="btn btn-md btn-primary waves-effect waves-button" href="{$WEBPATH}/bbs/reply/{$bid}">回复</a>{/iflogin}
                            {::ifnologin}<a href="{$WEBPATH}/login"
                                class="btn btn-md btn-primary waves-effect waves-button">登录后回复</a>{/ifnologin}
                        </li>
                    </ul>
                </div>
                <!--楼层部分-->
                {$postlist}
            </div>

            <div class="post-bar">
                <div class="tags hidden-xs">

                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function delbbs(id){
        if(confirm('你确定要删除此贴吗?')){
            window.location.href="{$WEBPATH}/bbs/delete/{$bid}";
        }
    }
    function topbbs(id){
        if(confirm('你确定要置顶此贴吗?')){
            window.location.href="{$WEBPATH}/bbs/top/{$bid}";
        }
    }
    
</script>